package com.zmzncs.lmtc.module.shop.pojo.shop_info;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 商户-信息
 * </p>
 *
 * @author 高博文
 * @since 2021-05-20
 */
@Data
public class ShopInfoSelectForm implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "页码",required = true)
    @NotNull
    private Integer currentPage;

    @ApiModelProperty(value = "每页记录数",required = true)
    @NotNull
    private Integer pageSize;

    @ApiModelProperty(value = "商户名称/联系人/手机号")
    private String keyword;

    @ApiModelProperty(value = "经营类型(1 餐饮，2 加油站，3 洗车，4 养车，5 商超，6 其他)")
    private Integer businessType;

    @ApiModelProperty(value = "停车场名称")
    private String parkName;

    @ApiModelProperty(value = "注册开始时间(yyyy-MM-dd)")
    private String startTime;

    @ApiModelProperty(value = "注册结束时间(yyyy-MM-dd)")
    private String endTime;

    public void setCurrentPage(Integer currentPage) {
        if (pageSize == null){
            this.currentPage = 1;
        } else {
            this.currentPage = currentPage;
        }
    }

    public void setPageSize(Integer pageSize) {
        if (pageSize == null){
            this.pageSize = 10;
        } else {
            this.pageSize = pageSize;
        }
    }
}
